import Vue from 'vue'
import Router from 'vue-router'
import login from '@/view/login/'
import login1 from '@/view/inlet/1'
import login2 from '@/view/inlet/2'
import login3 from '@/view/inlet/3'
import login4 from '@/view/inlet/4'
// import inlet from '@/view/inlet/1'
import index from '@/view/index/'
import home from '@/view/home/'
import commitment from '@/view/commitment/'
import authorInformation from '@/view/authorInformation/'
import measurement from '@/view/measurement/'
import researchProject from '@/view/projectInfo/researchProject/'
import PersonalStatement from '@/view/projectInfo/PersonalStatement/'
import tutors from '@/view/projectInfo/tutors/'
import StudyResult from '@/view/projectInfo/StudyResult/'
import expert from '@/view/projectInfo/expert/'
import PrintDeclaration from '@/view/PrintDeclaration/'
import UploadDeclaration from '@/view/UploadDeclaration/'
import shenhe from '@/view/admin/shenhe/'
import pingshen from '@/view/admin/pingshen/'
import xiangmuchaxun from '@/view/admin/guanliyuan/xiangmuchaxun/'
import xiangmudaochu from '@/view/admin/guanliyuan/xiangmudaochu/'
import cns from '@/view/cns/'
import account from '@/view/account/'
import exportRar from '@/view/admin/guanliyuan/exportRar/'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/2',
      name: '审核',
      component: login2
    },
    {
      path: '/3',
      name: '评委',
      component: login3
    },
    {
      path: '/4',
      name: '管理员',
      component: login4
    },
    {
      path: '/',
      name: '入口',
      component: login1
    },
    {
      path: '/login',
      name: '登录',
      component: login
    },
    {
      path: '/index',
      name: '首页',
      component: index,
      children: [
        {
          path: 'home',
          name: '承诺书',
          component: home
        },
        {
          path: 'commitment',
          name: '承诺书',
          component: commitment
        },
        {
          path: 'authorInformation',
          name: '作者信息',
          component: authorInformation
        },
        {
          path: 'measurement',
          name: '素质测评',
          component: measurement
        },
        {
          path: 'researchProject',
          name: '研究项目',
          component: researchProject
        },
        {
          path: 'PersonalStatement',
          name: '个人陈述',
          component: PersonalStatement
        },
        {
          path: 'tutors',
          name: '辅导教师',
          component: tutors
        },
        {
          path: 'StudyResult',
          name: '学习成绩',
          component: StudyResult
        },
        {
          path: 'expert',
          name: '指导专家',
          component: expert
        },
        {
          path: 'PrintDeclaration',
          name: '打印申报书',
          component: PrintDeclaration
        },
        {
          path: 'UploadDeclaration',
          name: '上传申报书',
          component: UploadDeclaration
        },
        {
          path: 'shenhe',
          name: '审核',
          component: shenhe
        },
        {
          path: 'pingshen',
          name: '评审',
          component: pingshen
        },
        {
          path: 'xiangmuchaxun',
          name: '项目查询',
          component: xiangmuchaxun
        },
        {
          path: 'xiangmudaochu',
          name: '项目导出',
          component: xiangmudaochu
        },
        {
          path: 'cns',
          name: '承诺书',
          component: cns
        },
        {
          path: 'account',
          name: '账号列表',
          component: account
        },
        {
          path: 'export',
          name: '项目导出',
          component: exportRar
        }
      ]
    }
  ]
})
